Angular – PrimeNG – datatable: How to dynamically load columns and their fields in primeNg datatable – iTecNote |
您所在的位置:网站首页 › jquery data- › Angular – PrimeNG – datatable: How to dynamically load columns and their fields in primeNg datatable – iTecNote |
I have json list, which have some input field and some dropdown fields. now when displaying it in datatable, i want to show Input Field or Dropdown Field based on field type in my json list. my code is This code is working and shows all data and columns, but i want to show if the field is dropdown in json list then in table it should show dropdown. How can i do that? is if condition works here? Thank in advance. EDIT: After Alex comments, i have edit my code as follow but it is showing dropdown with no list. |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |